package com.yuoj.yuojbackendserviceclient.service;


import com.yuoj.backendcommon.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 刘渠好
 * @since 2025-04-04 23:05
 * 判题服务
 */
@FeignClient(name = "yuoj-backend-judge-service",path = "/api/judge/inner")
public interface JudgeFeignClient {

    /**
     * 根据提交题目id判题
     * @param questionSubmitId
     * @return
     */
    @PostMapping("/doJudge")
     QuestionSubmit doJudge (@RequestParam("questionSubmitId") long questionSubmitId);

}
